package cn.gson.crm.model.entity;

import java.util.Date;

public class StudentDetail extends Student {
	private Integer pid;
	// 收款员工id
	private Integer empId;
	// 付款单号
	private String payId;
	// 应付学费
	private Integer duePay;
	// 本次缴费金额
	private Integer thisPay;
	//已付金额
	private Integer havePay;
	//未付金额
	private Integer noPay;
	// 缴费时间
	private Date payDate;
	// 咨询师名字
	private String counselorName;
	// 学员状态
	private String stuGradeText;
	// 缴费方式
	private String payWay;
	//学制
	private String classTypeText;
	//缴费次数
	private Integer payCount;
	// 交款订单编号
	private String payOrderId;
	// 合同id
	private Integer cid;
	// 合同编号
	private String contactOrderId;
	// 合同创建时间
	private Date contractDate;
	//是否已缴清
	private Integer is_allpay;
	//学制
	private Integer classType;
	
	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getEmpId() {
		return empId;
	}

	public void setEmpId(Integer empId) {
		this.empId = empId;
	}

	public String getPayId() {
		return payId;
	}

	public void setPayId(String payId) {
		this.payId = payId;
	}

	public Integer getDuePay() {
		return duePay;
	}

	public void setDuePay(Integer duePay) {
		this.duePay = duePay;
	}

	public Integer getThisPay() {
		return thisPay;
	}

	public void setThisPay(Integer thisPay) {
		this.thisPay = thisPay;
	}
	public Integer getHavePay() {
		return havePay;
	}

	public void setHavePay(Integer havePay) {
		this.havePay = havePay;
	}

	public Integer getNoPay() {
		return noPay;
	}

	public void setNoPay(Integer noPay) {
		this.noPay = noPay;
	}
	public Date getPayDate() {
		return payDate;
	}

	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}

	public String getCounselorName() {
		return counselorName;
	}

	public void setCounselorName(String counselorName) {
		this.counselorName = counselorName;
	}

	public void setStuGradeText(String stuGradeText) {
		this.stuGradeText = stuGradeText;
	}

	public String getPayWay() {
		return payWay;
	}

	public void setPayWay(String payWay) {
		this.payWay = payWay;
	}

	public String getClassTypeText() {
		return classTypeText;
	}

	public void setClassTypeText(String classTypeText) {
		this.classTypeText = classTypeText;
	}

	public Integer getPayCount() {
		return payCount;
	}

	public void setPayCount(Integer payCount) {
		this.payCount = payCount;
	}

	public Integer getCid() {
		return cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public String getPayOrderId() {
		return payOrderId;
	}

	public void setPayOrderId(String payOrderId) {
		this.payOrderId = payOrderId;
	}

	public String getContactOrderId() {
		return contactOrderId;
	}

	public void setContactOrderId(String contactOrderId) {
		this.contactOrderId = contactOrderId;
	}

	public Date getContractDate() {
		return contractDate;
	}

	public void setContractDate(Date contractDate) {
		this.contractDate = contractDate;
	}

	public String getStuGradeText() {
		return stuGradeText;
	}
	
	public Integer getIs_allpay() {
		return is_allpay;
	}

	public void setIs_allpay(Integer is_allpay) {
		this.is_allpay = is_allpay;
	}

	public Integer getClassType() {
		return classType;
	}

	public void setClassType(Integer classType) {
		this.classType = classType;
	}

	@Override
	public void setGradeId(Integer gradeId) {
		super.setGradeId(gradeId);
		switch (gradeId) {
		case 1:
			this.stuGradeText = "完全没兴趣";
			break;
		case 2:
			this.stuGradeText = "可发展客户";
			break;
		case 3:
			this.stuGradeText = "潜在客户";
			break;
		case 4:
			this.stuGradeText = "意向客户";
			break;
		case 5:
			this.stuGradeText = "已签约";
			break;
		case 6:
			this.stuGradeText = "已入学";
			break;
		case 7:
			this.stuGradeText = "已退学";
			break;
		case 8:
			this.stuGradeText = "已毕业";
			break;
		case 9:
			this.stuGradeText = "就业中";
			break;
		case 10:
			this.stuGradeText = "已就业";
			break;
		case 11:
			this.stuGradeText = "已归档";
			break;
		default:
			this.stuGradeText = "可发展客户";
			break;
		}
	}

}